<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{dwdbForm.bundleName}"/>
    <head>
        <title>#{text['dwdbDetail.title']}</title>
        <meta name="heading" content="#{text['dwdbDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="dwdbForm">

<h:form id="dwdbForm" onsubmit="return validateDwdbForm(this)">
<h:inputHidden value="#{dwdbForm.dwdb.id}" id="id"/>
<h:inputHidden value="#{dwdbForm.dwdb.version}" id="version"/>
<h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{dwdbForm.save}" id="save" styleClass="button"/>
        <c:if test="${not empty dwdbForm.dwdb.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{dwdbForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Dwdb')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
</h:panelGroup>

<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="bdbmc" value="#{text['dwdb.bdbmc']}"/>
    <t:message for="bdbmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bdbmc" value="#{dwdbForm.dwdb.bdbmc}" required="false" maxlength="50">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="dbje" value="#{text['dwdb.dbje']}"/>
    <t:message for="dbje" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dbje" value="#{dwdbForm.dwdb.dbje}" required="false" maxlength="20">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="jbh" value="#{text['dwdb.jbh']}"/>
    <t:message for="jbh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jbh" value="#{dwdbForm.dwdb.jbh}" required="false" maxlength="100">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="dbzrzl" value="#{text['dwdb.dbzrzl']}"/>
    <t:message for="dbzrzl" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="dbzrzl" value="#{dwdbForm.dwdb.dbzrzl}" required="false" maxlength="50">
    </h:inputText>
   <!-- 
    
    <h:outputLabel styleClass="desc" for="qzsj" value="#{text['dwdb.qzsj']}"/>
    <t:message for="qzsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qzsj" value="#{dwdbForm.dwdb.qzsj}" required="false" maxlength="50">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="bz" value="#{text['dwdb.bz']}"/>
    <t:message for="bz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bz" value="#{dwdbForm.dwdb.bz}" required="false" maxlength="100">
    </h:inputText>
   
    <h:outputLabel styleClass="desc" for="operation" value="#{text['dwdb.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{dwdbForm.dwdb.operation}" required="false" maxlength="20">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['dwdb.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{dwdbForm.dwdb.optdate}" required="false" maxlength="23">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="username" value="#{text['dwdb.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{dwdbForm.dwdb.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['dwdb.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{dwdbForm.dwdb.xh}" required="false" maxlength="255">
    </h:inputText>
     -->
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateDwdbForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('dwdbForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
